Skip to content

Conversation

@HeartLinked
Copy link
Contributor

@HeartLinked HeartLinked commented Oct 15, 2025

The current JSON parsing logic in GetJsonValueOrDefault does not correctly handle cases where an optional field is present with an explicit null value. Now, if a key is present but its value is null, the function correctly returns the default value, treating it the same as a missing key.

Copy link
Collaborator

@zhjwpku zhjwpku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@wgtmac wgtmac changed the title fix: Handle null values in GetJsonValueOrDefault fix: Handle null values in GetJsonValueXXX Oct 17, 2025
Copy link
Contributor

@gty404 gty404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@wgtmac wgtmac merged commit 730cd5c into apache:main Oct 17, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants